package com.wang.controller;

import com.wang.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname Test01Controller
 * @Description TODO
 * @Date 2024/5/10 11:27
 * @Created by pc
 */
@RestController
public class Test02Controller {

    @Autowired
    private User user;


    @RequestMapping("/test2")
    public String test01(){
        return user.getName()+ "-" + user.getAge() + ":" +user.getUuid() + "~~~~~~" ;
    }
}
